package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.common.bean.po.OrderEquipPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 工单设备表(OrderEquip)表服务接口
 *
 * @author zhouj
 * @since 2022-03-16 15:49:19
 */
public interface OrderEquipService {

    int insertOrUpdate(SessionFactory factory, OrderEquipPo orderEquip);

    int insertOrUpdateBatch(SessionFactory factory, List<OrderEquipPo> orderEquipList);

    int insert(SessionFactory factory, OrderEquipPo orderEquip);

    int insertBatch(SessionFactory factory, List<OrderEquipPo> orderEquipList);

    int update(SessionFactory factory, OrderEquipPo orderEquip);

    int deleteById(SessionFactory factory, String id);

    int deleteByOrderId(SessionFactory factory, String orderId);

    OrderEquipPo queryById(SessionFactory factory, String id);

    List<OrderEquipPo> queryByOrderId(SessionFactory factory, String orderId);

    List<OrderEquipPo> queryByOrderIds(SessionFactory factory, List<String> orderIds);

    PageInfo queryPageList(SessionFactory factory, OrderEquipPo orderEquip, PageQuery pageQuery);

    List<OrderEquipPo> queryList(SessionFactory factory, OrderEquipPo orderEquip);

}
